package com.by.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.entity.OrderAddr;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderAddrMapper extends BaseMapper<OrderAddr> {
    /**
     * 查询收货地址是否存在
     */
    Integer selectIdByAdds(@Param("addr") String addr, @Param("userId") Integer userId);


    /**
     * 根据订单地址id查询收货地址
     */
    String selectAddrByOrderAddrId(@Param("orderAddrId") Integer orderAddrId);
}
